﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for ChildInfo
/// </summary>
/// 
namespace CE.PersonalAccident
{
    public class ChildInfo
    {
        private Int64 _pachildid;
        private Int64 _paproposalid;
        private Int64 _paid;
        private Int64 _pacompanyid;
        private string _name;
        private DateTime _dob;
        private char _gender;
        private string _nricno;
        private string _nationality;
        private string _relation;

        //common field name
        private Int64 _refceuserid;
        private Int64 _vieweddetailid;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public ChildInfo()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 PAChildId
        {
            get { return _pachildid; }
            set { _pachildid = value; }
        }

        public Int64 PAProposalId
        {
            get { return _paproposalid; }
            set { _paproposalid = value; }
        }

        public Int64 PAId
        {
            get { return _paid; }
            set { _paid = value; }
        }

        public Int64 PACompanyId
        {
            get { return _pacompanyid; }
            set { _pacompanyid = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public DateTime DOB
        {
            get { return _dob; }
            set { _dob = value; }
        }

        public char Gender
        {
            get { return _gender; }
            set { _gender = value; }
        }

        public string NRICNo
        {
            get { return _nricno; }
            set { _nricno = value; }
        }

        public string Nationality
        {
            get { return _nationality; }
            set { _nationality = value; }
        }

        public string Relation
        {
            get { return _relation; }
            set { _relation = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _pachildid = 0;
            _paproposalid = 0;
            _paid = 0;
            _pacompanyid = 0;
            _name = "";
            _dob = CE.Global.General.GetUTCDateTime();
            _gender = '0';
            _nricno = "";
            _nationality = "";
            _relation = "";

            //common field name
            _refceuserid = 0;
            _vieweddetailid = 0;
            _status = false;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }

    }
}